package mqigdcom.mqigd.db;

import mqigdcom.mqigd.utils.Utils;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * 路况信息
 */
@DatabaseTable(tableName = DBHelper.TABLE_ROAD_CONDITION)
public class RoadCondition {
    @DatabaseField(generatedId = true)
    private int _id;

    @DatabaseField(canBeNull = false)
    private String userid;

    @DatabaseField(canBeNull = false)
    private String road_id;

    @DatabaseField(canBeNull = false)
    private String unit_id;

    @DatabaseField
    private int x;

    @DatabaseField
    private int y;

    @DatabaseField
    private String value;

    @DatabaseField(canBeNull = false)
    private String line_dir;

    @DatabaseField
    private String start_stake;

    @DatabaseField
    private String end_stake;

    @DatabaseField(canBeNull = false)
    private String type;

    @DatabaseField
    private int status;// 上传状态。默认 0 未上传；1 正在上传；

    public int get_id() {
        return _id;
    }

    public void set_id(int _id) {
        this._id = _id;
    }

    public String getUserid() {
        return Utils.checkNull(userid);
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getRoad_id() {
        return Utils.checkNull(road_id);
    }

    public void setRoad_id(String road_id) {
        this.road_id = road_id;
    }

    public String getUnit_id() {
        return Utils.checkNull(unit_id);
    }

    public void setUnit_id(String unit_id) {
        this.unit_id = unit_id;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public String getValue() {
        return Utils.checkNull(value);
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getLine_dir() {
        return Utils.checkNull(line_dir);
    }

    public void setLine_dir(String line_dir) {
        this.line_dir = line_dir;
    }

    public String getStart_stake() {
        return Utils.checkNull(start_stake);
    }

    public void setStart_stake(String start_stake) {
        this.start_stake = start_stake;
    }

    public String getEnd_stake() {
        return Utils.checkNull(end_stake);
    }

    public void setEnd_stake(String end_stake) {
        this.end_stake = end_stake;
    }

    public String getType() {
        return Utils.checkNull(type);
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
